﻿@model IEnumerable<ArivisTests.Models.TestResult>

@{
    ViewBag.Title = "Results";
}

@section Navigation{
    @Html.ActionLink("Configuration", "Index", "Config")
    &rsaquo;
    Results
}

<table class="index-table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Color)
        </th>
        <th>Actions</th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink(item.Name, "EditResult", new { id=item.Id })
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Color)
        </td>
        <td>
            @Html.ActionLink("Delete", "DeleteResult", new { id=item.Id })
        </td>
    </tr>
}
</table>

<p>
    @Html.ActionLink("Create New", "AddResult")
</p>

